package com.example.tool.activtiy;

import android.view.View;
import android.widget.Button;

import com.example.tool.R;
import com.example.tool.activtiy.base.BaseActivity;
import com.example.tool.mvp.CommonPresent;

import butterknife.BindView;

/**
 * @author: liangkun
 * @date: 2020/7/14 9:35
 * @description:
 */
public class CallBackActivity extends BaseActivity<CommonPresent> {
    @BindView(R.id.btn_add)
    protected Button buttonAdd;

    @Override
    protected int getLayoutId() {
        return R.layout.callback_activity;
    }

    @Override
    protected void initView() {

    }

    @Override
    protected void initData() {

    }

    @Override
    protected void initEvent() {
        buttonAdd.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                setResult(RESULT_OK);
                finish();
            }
        });
    }

    @Override
    protected CommonPresent createPresenter() {
        return null;
    }
}
